home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / newsgrp / group99a.txt / 000052_icon-group-sender _Thu Mar 18 08:39:53 1999.msg < prev    next >
Internet Message Format  |  2000-09-20  |  3KB

  1. Return-Path: <icon-group-sender>
  2. Received: (from root@localhost)
  3.     by baskerville.CS.Arizona.EDU (8.9.1a/8.9.1) id IAA00942
  4.     for icon-group-addresses; Thu, 18 Mar 1999 08:34:59 -0700 (MST)
  5. Message-Id: <199903181534.IAA00942@baskerville.CS.Arizona.EDU>
  6. X-Authentication-Warning: pandora.cs.utsa.edu: rpereda owned process doing -bs
  7. Date: Wed, 17 Mar 1999 19:25:50 -0600 (CST)
  8. From: Ray Pereda <rpereda@cs.utsa.edu>
  9. X-Sender: rpereda@pandora
  10. To: "Alan B. Saichek" <abs@sgi.com>
  11. cc: icon-group@optima.CS.Arizona.EDU
  12. Subject: Re: Icon Programming Language FAQ: Y2K ?
  13. Errors-To: icon-group-errors@optima.CS.Arizona.EDU
  14. Status: RO
  15.  
  16. On Wed, 17 Mar 1999, Alan B. Saichek wrote:
  17.  
  18. > Sorry if I've missed any discussion on Y2K and Icon previously.
  19. > Is there a general observation about this topic? Might go on the FAQ?
  20.  
  21. I wrote a program to automatically fix this bug and have already 
  22. been testing it.  Below is the code: 
  23.  
  24. # Filename: y2k.icn
  25.  
  26. procedure main()
  27.    while write(map(read(), 'y', 'k'))
  28. end
  29.  
  30. Here is the output when I run it on a calendar program:
  31.  
  32. $ cal 1999 | y2k
  33.                                1999
  34.  
  35.       Januark                Februark                March
  36. Su Mo Tu We Th Fr Sa   Su Mo Tu We Th Fr Sa   Su Mo Tu We Th Fr Sa
  37.                 1  2       1  2  3  4  5  6       1  2  3  4  5  6
  38.  3  4  5  6  7  8  9    7  8  9 10 11 12 13    7  8  9 10 11 12 13
  39. 10 11 12 13 14 15 16   14 15 16 17 18 19 20   14 15 16 17 18 19 20
  40. 17 18 19 20 21 22 23   21 22 23 24 25 26 27   21 22 23 24 25 26 27
  41. 24 25 26 27 28 29 30   28                     28 29 30 31
  42. 31
  43.  
  44.        April                   Mak                    June
  45. Su Mo Tu We Th Fr Sa   Su Mo Tu We Th Fr Sa   Su Mo Tu We Th Fr Sa
  46.              1  2  3                      1          1  2  3  4  5
  47.  4  5  6  7  8  9 10    2  3  4  5  6  7  8    6  7  8  9 10 11 12
  48. 11 12 13 14 15 16 17    9 10 11 12 13 14 15   13 14 15 16 17 18 19
  49. 18 19 20 21 22 23 24   16 17 18 19 20 21 22   20 21 22 23 24 25 26
  50. 25 26 27 28 29 30      23 24 25 26 27 28 29   27 28 29 30
  51.                        30 31
  52.  
  53.         Julk                  August               September
  54. Su Mo Tu We Th Fr Sa   Su Mo Tu We Th Fr Sa   Su Mo Tu We Th Fr Sa
  55.              1  2  3    1  2  3  4  5  6  7             1  2  3  4
  56.  4  5  6  7  8  9 10    8  9 10 11 12 13 14    5  6  7  8  9 10 11
  57. 11 12 13 14 15 16 17   15 16 17 18 19 20 21   12 13 14 15 16 17 18
  58. 18 19 20 21 22 23 24   22 23 24 25 26 27 28   19 20 21 22 23 24 25
  59. 25 26 27 28 29 30 31   29 30 31               26 27 28 29 30
  60.  
  61.  
  62.       October                November               December
  63. Su Mo Tu We Th Fr Sa   Su Mo Tu We Th Fr Sa   Su Mo Tu We Th Fr Sa
  64.                 1  2       1  2  3  4  5  6             1  2  3  4
  65.  3  4  5  6  7  8  9    7  8  9 10 11 12 13    5  6  7  8  9 10 11
  66. 10 11 12 13 14 15 16   14 15 16 17 18 19 20   12 13 14 15 16 17 18
  67. 17 18 19 20 21 22 23   21 22 23 24 25 26 27   19 20 21 22 23 24 25
  68. 24 25 26 27 28 29 30   28 29 30               26 27 28 29 30 31
  69. 31
  70.  
  71. -ray
  72.  
  73.